package src.main.java.org.thread.demo;

public class MyThread extends Thread{
    private Account acc;
    @Override
    public void run() {
        //取钱
        acc.drawMoney(100000);
    }
    public MyThread(Account acc, String name){
        super(name);
        this.acc = acc;

    }
}
